import request from '@/utils/request'

// 查询智能推送消息列表
export function listPushMessage(query) {
  return request({
    url: '/pushMessage/list',
    method: 'get',
    params: query
  })
}

// 查询智能推送消息详细
export function getPushMessage(id) {
  return request({
    url: '/pushMessage/' + id,
    method: 'get'
  })
}

// 新增智能推送消息
export function addPushMessage(data) {
  return request({
    url: '/pushMessage',
    method: 'post',
    data: data
  })
}

// 修改智能推送消息
export function updatePushMessage(data) {
  return request({
    url: '/pushMessage',
    method: 'put',
    data: data
  })
}

// 删除智能推送消息
export function delPushMessage(id) {
  return request({
    url: '/pushMessage/' + id,
    method: 'delete'
  })
}
